import request from '@/utils/request'

// 查询审批记录列表
export function listAuditLog(query) {
  return request({
    url: '/business/auditLog/list',
    method: 'get',
    params: query
  })
}

// 查询审批记录所有列表
export function listAllAuditLog(query) {
  return request({
    url: '/business/auditLog/listAll',
    method: 'get',
    params: query
  })
}

// 查询审批记录详细
export function getAuditLog(id) {
  return request({
    url: '/business/auditLog/getInfo/' + id,
    method: 'get'
  })
}

// 新增审批记录
export function addAuditLog(data) {
  return request({
    url: '/business/auditLog/add',
    method: 'post',
    data: data
  })
}

// 修改审批记录
export function updateAuditLog(data) {
  return request({
    url: '/business/auditLog/edit',
    method: 'post',
    data: data
  })
}

// 删除审批记录
export function delAuditLog(id) {
  return request({
    url: '/business/auditLog/remove/' + id,
    method: 'get'
  })
}
